<template>
  <div class="search-box panel shadow">
    <div class="panel-title">搜索</div>
    <div class="search margin-15-0 ">
      <div>
        <input type="text" placeholder="Search . . ." required>
      </div>
      <h1>
        <span>w</span>
        <span>o</span>
        <span>o</span>
        <span>h</span>
        <span>o</span>
        <span>o</span>
        <span>o</span>
        <span>!</span>
      </h1>
    </div>
  </div>
</template>
<script setup lang="ts">
import {ref,reactive} from "vue"




</script>
<style lang="scss" scoped>

.search-box {
  margin-top: 20px;
  background: #bdbdf0;
  
  &>div:first-child {
    color: var(--cGreen);
    font-size: 22px;
  }
}
.search {
  display: flex;
  overflow: hidden;
  // overflow-x: hidden;
}
.search > div {
  display: inline-block;
  position: relative;
  filter: drop-shadow(0 1px #0091c2);
}

.search > div:after {
  content: "";
  background: white;
  width: 4px;
  height: 10px;
  position: absolute;
  top: 25px;
  right: 0;
  transform: rotate(135deg);
}

.search > div > input {
  color: white;
  font-size: 16px;
  background: transparent;
  width: 30px;
  height: 30px;
  padding: 10px;
  border: solid 3px white;
  outline: none;
  border-radius: 35px;
  transition: width 0.5s;
}

.search > div > input::placeholder {
  color: #efefef;
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.search > div > input:focus::placeholder {
  opacity: 1;
}

.search > div > input:focus,
.search > div > input:not(:placeholder-shown) {
  width: 250px;
}


h1 {
  display: inline-block;
  margin-left: 55px;
  width: 120px;
    height: 40px;
    overflow: hidden;
}

h1 span {
  position: relative;
  top: 1px;
  display: inline-block;
  animation: bounce .5s ease infinite alternate;
  font-family: 'Titan One', cursive;
  font-size: 30px;
  color: #FFF;
  text-shadow: 0 1px 0 #CCC,
               0 2px 0 #CCC,
               0 3px 0 #CCC,
               0 4px 0 #CCC,
               0 5px 0 #CCC,
               0 1px 0 transparent,
               0 2px 0 transparent,
               0 3px 0 transparent,
               0 4px 0 transparent,
               0 5px 10px rgba(0, 0, 0, .4);
}

h1 span:nth-child(2) { animation-delay: .1s; }
h1 span:nth-child(3) { animation-delay: .2s; }
h1 span:nth-child(4) { animation-delay: .3s; }
h1 span:nth-child(5) { animation-delay: .4s; }
h1 span:nth-child(6) { animation-delay: .5s; }
h1 span:nth-child(7) { animation-delay: .6s; }
h1 span:nth-child(8) { animation-delay: .7s; }

@keyframes bounce {
  100% {
    top: -2px;
    text-shadow: 0 1px 0 #CCC,
                 0 2px 0 #CCC,
                 0 3px 0 #CCC,
                 0 4px 0 #CCC,
                 0 5px 0 #CCC,
                 0 6px 0 #CCC,
                 0 7px 0 #CCC,
                 0 8px 0 #CCC,
                 0 9px 0 #CCC,
                 0 50px 25px rgba(0, 0, 0, .2);
  }
}

</style>
